package com.hefeng.example.controller;

import com.hefeng.example.service.UserInfoService;
import com.hefeng.common.core.web.domain.AjaxResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/userInfo")
@Api(tags = "用户接口")
public class UserInfoController {
    @Autowired
    private UserInfoService userInfoService;


    @PostMapping("/from")
    public AjaxResult slelct(String deviceId) {
        return AjaxResult.success(userInfoService.select(deviceId));

    }
}
